<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta content="yes" name="apple-mobile-web-app-capable" /> 
<meta content="yes" name="apple-touch-fullscreen" /> 
<meta content="telephone=no,email=no" name="format-detection" />
<link rel="stylesheet" href="{RES}css/base.css?v=3">
<script type="text/javascript" src="{RES}js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="{RES}js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="{RES}js/common.js?v=3"></script>
<script type="text/javascript" src="{RES}js/tongji.js"></script>

<title>你有一通{$s_botton}的未接电话</title>
</head>
<body>
<div class="wrapper">
    <div class="title">
        <h3>{$s_botton}</h3>
        <p>住宅</p>
    </div>
    <div class="ring">
        <div class="musicbar music_on" id="musicbtn">
            <div class="yinfu"></div>
            <audio loop src="{RES}images/bell.mp3" id="media" autoplay preload></audio>
        </div>
        <div class="answerbar">
            <div class="answer" onclick="window.location.href='{php echo $ontelurl}';">
                <img src="{RES}images/answer.png" /></div>                      
        </div>
    </div>
</div>
{php echo register_jssdk(false);}
<script type="text/javascript">


    wx.ready(function () {
        sharedata = {
            title: "{php echo $title}",
            desc: "{php echo $desc}",
            link: "{php echo $pageurl}",
            imgUrl: "{php echo $pic}",
            success: function(){
                alert("更多好玩请关注官方微信号。");
                window.location.href = '{$s_url}';
            },
            cancel: function(){
                alert("分享失败，可能是网络问题，一会儿再试试？");
            }
        };
        wx.onMenuShareAppMessage(sharedata);
        wx.onMenuShareTimeline(sharedata);
    });
</script>	
</body>
</html>